home *** CD-ROM | disk | FTP | other *** search
- on MOVEBLUE
- global GRIDY, GRIDV, GRID, MV, GN, done, STARTED, REDSCORE, BLUESCORE, GAMELEN
- set done to 0
- repeat while done = 0
- set MV to 0
- repeat while MV = 0
- set MV to 0
- repeat with N = 1 to 140
- if getAt(GRIDV, N) = 2 then
- set GN to N
- CHECKBLUEMOVE()
- end if
- end repeat
- if MV = 0 then
- set MV to 1
- end if
- if ((REDSCORE - 2) > GAMELEN) or ((BLUESCORE - 2) > GAMELEN) then
- set MV to 1
- end if
- end repeat
- CHECKALLMOVEBLUE()
- if ((REDSCORE - 2) > GAMELEN) or ((BLUESCORE - 2) > GAMELEN) then
- set done to 1
- end if
- end repeat
- SHIFTHEAD()
- end
-